package com.ygqh.baby.service.wechat.model.good;

import com.alibaba.fastjson.annotation.JSONField;
import com.foxinmy.weixin4j.http.weixin.JsonResult;

import java.util.List;

/**
 * 好物圈——导入订单响应结果
 *
 * @Author: sunshuo
 * @Date: 2019/5/21 17:25
 * @Version: 1.0
 */
public class GoodImportOrderResult extends JsonResult {

	private static final long serialVersionUID = 2802848136142128882L;

	/**
	 * 失败订单信息
	 */
	@JSONField(name = "fail_order_list")
	private List<GoodFailOrder> failOrderList;

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public List<GoodFailOrder> getFailOrderList() {
		return failOrderList;
	}

	public void setFailOrderList(List<GoodFailOrder> failOrderList) {
		this.failOrderList = failOrderList;
	}

	public boolean isSuccess() {
		return super.getCode() == 0;
	}

	@Override
	public String toString() {
		return "GoodImportOrderResult{" +
				"failOrderList=" + failOrderList +
				"} " + super.toString();
	}
}
